<?php
/**
 * Default layout per Alessandro Pavesi
 */
defined('_JEXEC') or die('Restricted access');
?>

	<div id="canvas">
		<?php 
		// Includo layout header
		include($templateLoader -> getBaseTemplatePath($this, $option, $task, $Itemid, $_REQUEST) . "__header" . EC_TEMPLATE_EXT);
		?>
		
		<div id="contenuto">
			<?php 
			// Includo layout header
			include($templateLoader -> getBaseTemplatePath($this, $option, $task, $Itemid, $_REQUEST) . "__sx" . EC_TEMPLATE_EXT);
			?>
			
			<div id="corpo-centrale">
				<?php 
				// Catturo itemMenu raggiunto
				$itemMenu = $mainframe -> getMenu() -> getItem($Itemid);
				echo "<h2>" . $itemMenu -> name . "</h2>"; 
				?>

				<jdoc:include type="modules" name="intro" />
				
				<div id="segnala-pericolo">
					<div class="separatore"></div>
					<jdoc:include type="modules" name="introform" />
					<jdoc:include type="component" />
										
					<?php
					/*
					<form>
						<fieldset>
							<p>
							<label>nome*</label>
							<input type="text" class="text" name="name" id="name" value="<?php echo isset($_POST["name"]) ? $_POST["name"] : "" ?>"/>
							</p>

							<p class="secondo">
							<label>cognome*</label>
							<input type="text" class="text" name="surname" id="surname" value="<?php echo isset($_POST["surname"]) ? $_POST["surname"] : "" ?>"/>
							</p>

							<p>
							<label>email*</label>
							<input type="text" class="text" name="email" id="email" value="<?php echo isset($_POST["email"]) ? $_POST["email"] : "" ?>"/>
							</p>

							<p class="secondo">
							<label>telefono</label>
							<input type="text" class="text" name="phone" id="phone" value="<?php echo isset($_POST["phone"]) ? $_POST["phone"] : "" ?>"/>
							</p>
							
							<p>
							<label>scuola/facolt&agrave;</label>
							<input type="text" class="text" name="school" id="school" value="<?php echo isset($_POST["school"]) ? $_POST["school"] : "" ?>"/>
							</p>

							<p class="secondo">
							<label>classe/anno</label>
							<input type="text" class="text" name="classroom" id="classroom" value="<?php echo isset($_POST["classroom"]) ? $_POST["classroom"] : "" ?>"/>
							</p>
							
							<div class="pulizia"></div>
							<p class="note">i campi contrassegnati da (*) sono obbligatori</pre>

							<div class="separatore"></div>
							
							<h4>segnalazione</h4>

							<p>
								<label>indirizzo*</label>
								<input type="text" class="text" name="report_address" id="report_address" value="<?php echo isset($_POST["report_address"]) ? $_POST["report_address"] : "" ?>"/>
							</p>

							<p class="secondo">
								<label>CAP*</label>
								<input type="text" class="text" name="report_zip" id="report_zip" value="<?php echo isset($_POST["report_zip"]) ? $_POST["report_zip"] : "" ?>"/>
							</p>

							<p class="area">
								<label>descrizione situazione di pericolo*</label>
								<textarea class="textarea" name="report" id="report"/><?php echo isset($_POST["report"]) ? $_POST["report"] : "" ?></textarea>
							</p>

							<p>
								<label>allega immagine</label>
								<input type="file" class="file" name="report_photo" id="report_photo"/>
							</p>
								
							<div class="pulizia"></div>
							<div class="separatore"></div>
							
							<h4>inserire codice di sicurezza</h4>

							<p class="captcha">{imageverification}</p>
							
							<div class="pulizia"></div>
							<div class="separatore"></div>
							
							<h4>normativa sulla privacy</h4>

							<p class="area">
								<textarea class="textarea"/><jdoc:include type="modules" name="privacy" /></textarea>
							</p>

							<p class="accetto">
								<strong>accetto</strong>
								<input type="radio" name="agree" id="agree-valid" value="1"/> <label for="agree-valid">s&igrave; </label>
								<input type="radio" name="agree" id="agree-invalid" value="0"/> <label for="agree-invalid">no</label>
							</p>

							<p class="secondo">
								<button type="submit">invia</button>
							</p>
														
						</fieldset>
					</form>
					*/
					?>

				</div>
				
				<?php 
				// Includo layout header
				include($templateLoader -> getBaseTemplatePath($this, $option, $task, $Itemid, $_REQUEST) . "__back" . EC_TEMPLATE_EXT);
				?>
				
			</div>
			
			<?php 
			// Includo layout header
			include($templateLoader -> getBaseTemplatePath($this, $option, $task, $Itemid, $_REQUEST) . "__dx" . EC_TEMPLATE_EXT);
			?>
			
			<div class="pulizia"></div>
		</div>

		<?php 
		// Includo layout footer
		include($templateLoader -> getBaseTemplatePath($this, $option, $task, $Itemid, $_REQUEST) . "__footer" . EC_TEMPLATE_EXT);
		?>

	</div>